/* 
 * File:   Statistics.cpp
 * Author: James
 * 
 * Created on November 7, 2010, 9:09 PM
 */

#include "Statistics.h"

Statistics::Statistics() {
}
Statistics::Statistics(int n) {
    this->nProcs = n;
    ganttI = 0;
    
}
Statistics::Statistics(const Statistics& orig) {
}

Statistics::~Statistics() {


}

void Statistics::addGanttEntry(int g[3]) {
        int i;
        for (i = 0; i < 3; i++) {
            gantt[ganttI][i] = g[i];
        }
        ganttI++;
}
int Statistics::getAvgWait() {
   return totalWait/nProcs;
}

int Statistics::getAvgTurnaround() {
    return totalTurn/nProcs;
}

int** Statistics::getGanttData() {
    return gantt;
}
